module sw.unsupportedmode;
/**
 * 未対応なモード
 */
import sw.locale.locale, sw.siteconfig, sw.contentmode, sw.mode, nazo.http, sw.modelist, sw.siteconfig, sw.main;

class UnsupportModeFactory:ModeFactory{
  mixin TModeFactory!();
  const static string prefix;
  IMode getMode(string name){
    return new UnsupportedMode(cfg);
  }
}

class UnsupportedMode:XhtmlMode!(){
  this(SiteConfig* cfg){
    super(cfg);
  }
  override string title(){
    return CGI.locale.getValue!(Locale.Page.unsupported)();
  }
  override string contentBody(){
    return CGI.locale.getValue!(Locale.Page.unsupportedDescription)();
  }
}

class PlainUnsupportedMode:Mode!(){
  this(SiteConfig* cfg){
    super(cfg);
  }
  override void response(){
    HttpResponse.write("",404);
  }
}
